package org.example;

import javax.management.RuntimeErrorException;
import java.util.ArrayList;

/**
 * @program: exper_code
 * @description:
 * @author: wjd
 * @create: 2025-11-8 15:29
 **/
public class College {
    private ArrayList<Building> buildings;

    public College(ArrayList<Building> buildings) throws Exception {
        if (buildings.size() <= 0){
            throw new Exception("创建失败，一个学院必须由一个或多个building组成！");
        }
        this.buildings = buildings;
    }
}
